﻿
--[[
   @brief    personal_center desc
   @author   dragonqiu
   @version  1.0
   @date     2015-03-18
--]]

personal_center_desc = {
    module_name = 'personal_center',
    events = {
        {
            c_event = 
            {
                {
                    --个人中心个人信息返回
                    id = ierd_tgp.personal_center.SEND_PALYER_INFO,
                    callback = 'personal_center_control.get_personal_info'
                },
                {
                    --个人中心签到信息发回
                    id = ierd_tgp.personal_center.SEND_SIGN_IN_INFO,
                    callback = 'personal_center_control.get_sign_in_info'
                },
                {
                    --个人中心签到后信息推送
                    id = ierd_tgp.personal_center.SEND_SIGN_IN,
                    callback = 'personal_center_control.get_sign_in'
                },
                {
                    id = ierd_tgp.personal_center.SEND_TASK_COM_INFO,
                    callback = 'personal_center_control.get_task_com_info'
                },
                {
                    id = ierd_tgp.personal_center.SEND_TASK_LIST,
                    callback = 'personal_center_control.get_task_list'
                },
                {
                    id = ierd_tgp.personal_center.SEND_HOLLY_WOOD_REWARD,
                    callback = 'personal_center_control.get_holly_wood_reward_list'
                },
                {
                    id = ierd_tgp.personal_center.SEND_HOLLY_WOOD_CHK_FLAG,
                    callback = 'personal_center_control.get_holly_wood_chk_flag'
                },
                {
                    --个人中心特权信息推送
                    id = ierd_tgp.personal_center.SEND_PRIV_INFO,
                    callback = 'personal_center_control.get_individual_center_my_privilege'
                },
                {
                    id = ierd_tgp.personal_center.SEND_ACTIVITY_EXT,
                    callback = 'personal_center_control.get_activity_ext'
                },
                {
                    id = ierd_tgp.personal_center.SEND_TASK_RESULT,
                    callback = 'personal_center_control.get_task_result'
                },
                {
                    id = ierd_tgp.personal_center.SEND_AC_TASK_RESULT,
                    callback = 'personal_center_control.get_activity_task_result'
                },
                {
                    id = ierd_tgp.personal_center.SEND_AC_PRIZE_RESULT,
                    callback = 'personal_center_control.get_activity_prize_result'
                },
                {
                    id = ierd_tgp.personal_center.SEND_LEVEL_UP_PRIV,
                    callback = 'personal_center_control.get_levelup_tips_info'
                },
                {
                    id = ierd_tgp.personal_center.SEND_GAME_END_TIPS,
                    callback = 'personal_center_control.get_gameoperated_tips_info'
                },
                {
                    id = ierd_tgp.login_mgr.LOGIN_ON_LOGIN_SUCCESS,
                    callback = 'personal_center_control.login_success_config'
                },
                {
                    id = ierd_tgp.personal_center.SEND_CO_ACT_CHK_FLAG,
                    callback = 'personal_center_control.get_co_act_chk_flag'
                },
                {
                    id = ierd_tgp.personal_center.SEND_CO_ACT_REWARD,
                    callback = 'personal_center_control.get_co_act_reward'
                },
                {
                    id = ierd_tgp.tips_mgr.ON_MSGTIPS_GAME_RUNNING,
                    callback = "personal_center_control.get_game_runing_state"
                },
                {
                    id = ierd_tgp.personal_center.SEND_USER_BASE_INFO_RESULT,
                    callback = "personal_center_control.get_user_signature_and_area_info"
                },
                {
                    id = ierd_tgp.personal_center.SEND_USER_BASE_INFO_MODIFY_RESULT,
                    callback = "personal_center_control.get_user_modify_signature_and_area_result"
                },
                {
                    id = ierd_tgp.users_info.USER_INFO_ON_CHANGE_SELF_INFO,
                    callback = "personal_center_control.update_user_info"
                },
            },
            lua_event = 
            {
                {
                    id = personal_center_event.JC_PERSONAL_INFO,
                    callback = "personal_center_control.jc_personal_info"
                },
                {
                    id = personal_center_event.JC_PLAYER_INFO,
                    callback = "personal_center_control.jc_player_info"
                },
                {
                    id = personal_center_event.JC_SIGN_IN_INFO,
                    callback = "personal_center_control.jc_sign_in_info"
                },
                {
                    id = personal_center_event.JC_SIGN_IN,
                    callback = "personal_center_control.jc_sign_in"
                },
                {
                    id = personal_center_event.JC_TASK_COM_INFO,
                    callback = 'personal_center_control.jc_task_com_info'
                },
                {
                    id = personal_center_event.JC_TASK_LIST,
                    callback = 'personal_center_control.jc_task_list'
                },
                {
                    id = personal_center_event.JC_HOLLY_WOOD_REWARD_LSIT,
                    callback = 'personal_center_control.jc_holly_wood_reward_list'
                },
                {
                    id = personal_center_event.JC_BLUE_DIAMOND_COUPON,
                    callback = 'personal_center_control.jc_blue_diamond_coupon'
                },
                {
                    id = personal_center_event.JC_HOLLY_WOOD_CHK_FLAG,
                    callback = 'personal_center_control.jc_holly_wood_chk_flag'
                },
                {
                    id = personal_center_event.JC_BLUE_DIAMOND_CHK_FLAG,
                    callback = 'personal_center_control.jc_blue_diamond_chk_flag'
                },
                {
                    id = personal_center_event.JC_INDIVIDUAL_CENTER_MY_PRIVILEGE,
                    callback = "personal_center_control.jc_individual_center_my_privilege"
                },
                {
                    id = personal_center_event.JC_PERSONAL_CENTER_OPEN,
                    callback = 'personal_center_control.jc_personal_center_open'
                },
                {
                    id = personal_center_event.JC_PRIVILEGE_CHANGE_INFO,
                    callback = 'personal_center_control.jc_privilege_change_info'
                },
                {
                    id = personal_center_event.JC_ROUTER_VENDOR_INFO,
                    callback = 'personal_center_control.jc_router_vendor_info'
                },
                {
                    id = personal_center_event.JC_GAMEOVER_PRIVILEGE_INFO,
                    callback = 'personal_center_control.jc_gameover_privilege_info'
                },
                {
                    id = personal_center_event.OPEN_PRIVILEGE_CHANGE_WINDOW,
                    callback = "personal_center_control.open_extendboard_privilege_page"
                },
                {
                    id = personal_center_event.CLOSE_LEVELUP_TIPS,
                    callback = 'personal_center_control.close_levelup_tips'
                },
                {
                    id = open_link_event.OPEN_LINK,
                    callback = 'personal_center_control.open_link'
                },
                {
                    id = personal_center_event.CLOSE_GAMEEND_TIPS,
                    callback = 'personal_center_control.close_gameend_tips'
                },
                {
                    id = personal_center_event.CHECK_QM_SOFTWARE_ENV,
                    callback = 'personal_center_control.check_qm_software_env'
                },
                {
                    id = personal_center_event.JC_QM_SOFTWARE_CHK_FLAG,
                    callback = 'personal_center_control.jc_qm_software_chk_flag'
                },
                {
                    id = personal_center_event.JC_MOBILE_TGP_CHK_FLAG,
                    callback = 'personal_center_control.jc_mobile_tgp_chk_flag'
                },
                {
                    id = personal_center_event.JC_QM_SOFTWARE_REWARD,
                    callback = 'personal_center_control.jc_qm_software_reward'
                },
                {
                    id = personal_center_event.JC_MOBILE_TGP_REWARD,
                    callback = 'personal_center_control.jc_mobile_tgp_reward'
                },
                {
                    id = personal_center_event.JC_ACTIVITY_EXT,
                    callback = 'personal_center_control.jc_activity_ext'
                },
                {
                    id = personal_center_event.JC_SET_START_LIST,
                    callback = 'personal_center_control.jc_set_start_list'
                },
                {
                    id = personal_center_event.JC_GET_START_LIST,
                    callback = 'personal_center_control.jc_get_start_list'
                },
                {
                    id = personal_center_event.JS_GET_INSTALL_STATE,
                    callback = "personal_center_control.jc_get_install_state"
                },
                {
                    id = personal_center_event.JS_GET_USER_SIGNATURE_AND_AREA_INFO, 
                    callback = "personal_center_control.jc_get_user_signature_and_area_info"
                },
                {
                    id = personal_center_event.JS_SAVE_USER_SIGNATURE_AND_AREA_INFO,
                    callback = "personal_center_control.jc_save_user_signature_and_area_info"
                }
                },

            reg_service = {
                {
                    id = 'i_service_open_personal_center',
                    callback = "personal_center_control.open_personal_center_page"
                },
                {
                    id = 'i_service_get_personal_info',
                    callback = "personal_center_control.req_personal_info"
                },
            },
            lua_file = 'personal_center\\control.lua'
        }
    }
};

desc_mgr.add(personal_center_desc);
